﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Http;
using AttributeRouting;
using AttributeRouting.Web.Http;
using AutoFacWrapper;
using ZLWeb.WebApiEntity.EasyUse;
using ZLWeb.WebApiRepository.InterFace;

namespace ZLWeb.WebApiControllers.Controllers
{
    /// <summary>
    /// 支付
    /// </summary>
   [RoutePrefix("Api/Payment")]
    public class PaymentController :  ApiController
    {
        [GET("GetNo")]
        public AccInfo GetNo(string openid)
        {
            var paymentRepo = ClassFactory.GetInstance<IPaymentRepository>();
            return paymentRepo.GetAccInfo(openid, 2, 1, 0);
        }
    }
}
